package com.fortune.common.spring.config;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;

import com.fortune.util.UploadUtil;

public class FileConfig implements InitializingBean{
	@Value("${project.upload.virtualpath}")
	private String virtualpath;
	@Value("${project.upload.docBase}")
	private String docBase;
	@Value("${project.baseUrl}")
	private String baseUrl;
	@Override
	public void afterPropertiesSet() throws Exception {
		UploadUtil.setDocBaseAndVirtualPath(docBase, virtualpath, baseUrl);
	}
}
